#ifndef DATAPACK_H
#define DATAPACK_H
#include <QImage>
#include <opencv/cv.h>


class DataPack
{
public:
	DataPack ();
	DataPack (const QImage& originImg, const cv::Mat& recognizedCorners, cv::Size boardSize);
	~DataPack ();

	void genValidationImages (const cv::Mat& intrinsicMat,
			const cv::Mat& undistortCeofs,
			const cv::Mat& rVec, const cv::Mat& tVec,
			const cv::Mat& objectPoints);

	const cv::Mat& getCorners () const;

	const QImage& getOrigin () const;
	const QImage& getRecognizeResult () const;
	const QImage& getUndistort () const;
	const QImage& getReproject () const;

private:
	QImage _origin;
	QImage _recognizeResult;
	QImage _reprojected;
	QImage _undistort;
	cv::Mat _recognizedCorners;
	cv::Size _boardSize;

	void _genRecognizeResult ();
};

#endif // DATAPACK_H
